package ufmg.aprendizado.classificador;

import java.util.HashMap;

public class Instancia {
	private int id;
	private int classeReal;
	private HashMap<Integer, Double> scores;

	public Instancia() {
	}

	public Instancia(int id, int classeReal) {
		super();
		this.id = id;
		this.classeReal = classeReal;
		this.scores = new HashMap<Integer, Double>();
	}

	public void addScore(int classe, double score) {
		scores.put(classe, score);
	}

	public double getScoreAt(int classe) {
		return scores.get(classe);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getClasseReal() {
		return classeReal;
	}

	public void setClasseReal(int classeReal) {
		this.classeReal = classeReal;
	}
	
	public int getSize(){
		return scores.size();
	}

}
